package vip.zhenzicheng.nettybasic.serializable.msgpack;

import org.msgpack.annotation.Message;

/**
 * 实体
 *
 * @author zhenzicheng
 * @date 2022-06-27 15:55
 */
@Message //MessagePack提供的注解，表明这是一个需要序列化的实体类
public class UserContact {
  private String mail;
  private String phone;

  public UserContact() {
  }

  public UserContact(String mail, String phone) {
    this.mail = mail;
    this.phone = phone;
  }

  public String getMail() {
    return mail;
  }

  public void setMail(String mail) {
    this.mail = mail;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  @Override
  public String toString() {
    return "UserContact{" +
        "mail='" + mail + '\'' +
        ", phone='" + phone + '\'' +
        '}';
  }
}
